<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>复习2</title>
	</head>
	<body>
		<script type="text/javascript" >
			let arr = [1,3,5,7,9]
			let arr2 = ['马冬梅','周冬雨','周杰伦','冬冬']

			const result = arr.filter( item => item > 5)
			console.log(result)

			const result2 = arr2.filter( item => {
				return item.indexOf('冬') !== -1
			})
			console.log(result2)
		</script>
	</body>
</html>